package com.ethink.warehouse.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ethink.warehouse.api.info.MateInventoryDetailOrderInfo;
import com.ethink.warehouse.api.info.MateInventoryDetailOrderMoreInfo;
import com.ethink.warehouse.api.request.MateInventoryDetailOrderAddRequest;
import com.ethink.warehouse.api.request.MateInventoryDetailOrderQueryRequest;
import com.ethink.warehouse.api.request.MateInventoryDetailOrderUpdateRequest;
import com.ethink.warehouse.api.response.MateInventoryDetailOrderAddResponse;
import com.ethink.warehouse.api.response.MateInventoryDetailOrderDeleteResponse;
import com.ethink.warehouse.api.response.MateInventoryDetailOrderQueryResponse;
import com.ethink.warehouse.api.response.MateInventoryDetailOrderUpdateResponse;
import com.ethink.warehouse.common.entity.MateInventoryDetailOrder;

import java.util.List;

/**
 * 入库/出库明细单 Service接口
 *
 * @author default
 * @date 2022-12-15
 */
public interface MateInventoryDetailOrderService extends IService< MateInventoryDetailOrder> {

    /**
     * 分页查询
     *
     * @param request
     * @return
     */
    Page<MateInventoryDetailOrderQueryResponse> queryMateInventoryDetailOrder(MateInventoryDetailOrderQueryRequest request);

    /**
     * 查询详情
     *
     * @param mateInventoryDetailOrderId
     * @return
     */
    MateInventoryDetailOrderInfo getMateInventoryDetailOrderById(Long mateInventoryDetailOrderId);

    /**
     * 查询列表
     *
     * @param request
     * @return
     */
    List<MateInventoryDetailOrderMoreInfo> listMateInventoryDetailOrder(MateInventoryDetailOrderQueryRequest request);

    /**
     * 新增
     *
     * @param request
     * @return
     */
    MateInventoryDetailOrderAddResponse addMateInventoryDetailOrder(MateInventoryDetailOrderAddRequest request);

    /**
     * 修改
     *
     * @param request
     * @return
     */
    MateInventoryDetailOrderUpdateResponse updateMateInventoryDetailOrder(MateInventoryDetailOrderUpdateRequest request);

    /**
     * 删除
     *
     * @param mateInventoryDetailOrderId
     * @return
     */
    MateInventoryDetailOrderDeleteResponse deleteMateInventoryDetailOrder(Long mateInventoryDetailOrderId);

}